/** 
 * File:   CaseMotsCroises.hpp
 * Author: CHABOT DIEP MYCEK
 *
 */
 
#include <iostream>
#include <string>
#include "CaseMotsCroises.hpp"
using namespace std;

void CaseMotsCroises::setContenu(char c){
	contenu = c;
	if(c=='%'){multiplicite=0; }
}

char CaseMotsCroises::getContenu(){
	return contenu;
}

void CaseMotsCroises::effacerCase(){
	contenu = '%';
	multiplicite=0;
}

bool CaseMotsCroises::estVide(){
	return (contenu=='%'?true:false);
}

bool CaseMotsCroises::estNoire(){
	return (contenu=='*'?true:false);
}
void CaseMotsCroises::augmenterMultiplicite()
{
     multiplicite=multiplicite+1;
}

void CaseMotsCroises::decrementerMultiplicite()
{
     multiplicite=multiplicite-1;
}

int CaseMotsCroises::getMultiplicite()
{
     return multiplicite;
}
